package com.wzx.selfuse.service.impl;

import com.wzx.selfuse.entity.PlanCust;
import com.wzx.selfuse.entity.PlanOrder;
import com.wzx.selfuse.entity.PlanPro;
import com.wzx.selfuse.mapper.Plan_ICustMapper;
import com.wzx.selfuse.mapper.Plan_IOrderMapper;
import com.wzx.selfuse.service.Plan_ICustService;
import com.wzx.selfuse.service.Plan_IOrderService;
import com.wzx.selfuse.vo.PlanOrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Liu Tenda
 * @date 2022年 12月06日 20:09:51
 * Introduction:
 */
@Service
public class Plan_IOrderServiceImpl implements Plan_IOrderService {

    @Autowired
    Plan_IOrderMapper plan_iOrderMapper;


    @Override
    public List<PlanOrderVo> getOrderList() {
        return plan_iOrderMapper.getOrderList();
    }

    @Override
    public int addOrder(PlanOrder planOrder) {
        return plan_iOrderMapper.addOrder(planOrder);
    }

    @Override
    public PlanOrderVo getOrderByOrderNumber(String orderNumber) {
        return plan_iOrderMapper.getOrderByOrderNumber(orderNumber);
    }

    @Override
    public List<PlanOrderVo> getOrderByCustName(String custId) {
        return plan_iOrderMapper.getOrderByCustName(custId);
    }

    @Override
    public List<PlanOrderVo> getOrderByProName(String proId) {
        return plan_iOrderMapper.getOrderByProName(proId);
    }

    @Override
    public int deleteOrder(String orderNumber) {
        return plan_iOrderMapper.deleteOrder(orderNumber);
    }

    @Override
    public int editOrder(PlanOrder planOrder) {
        return plan_iOrderMapper.editOrder(planOrder);
    }
}